class Solution:
    def findContinuousSequence(self, target: int) -> List[List[int]]:
        i, j, sum_ = 1, 2, 1
        res = []
        while i <= target//2 and j <= target:
            if sum_ == target:
                res.append(list(range(i, j)))
            if sum_ <= target:
                sum_ += j
                j += 1
            else:
                sum_ -= i
                i += 1
        return res

if __name__ == '__main__':
    c = Solution()
    c.findContinuousSequence(8)